home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / plugin / gamelib / dpblend_sphere.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-11  |  747 b   |  35 lines

  1. class dpblend_sphere : public bsp_object
  2. {
  3. public:
  4.     dpblend_sphere() { type=TYPE_DPBLEND_SPHERE; lightdist=1e10; };
  5.  
  6.     vector ambient,diffuse;
  7.     int pxlsize;
  8.     int normalmap;
  9.     int mode;
  10.  
  11.     vector lightpos;
  12.     vector lightcolor;
  13.     float lightradius;
  14.     float lightdist;
  15.  
  16.     void build_normalmap(char *file);
  17.     void init_combiners();
  18.  
  19.     void init();
  20.     int step(int dt);
  21.     void draw();
  22.     int message(vector& p,float rad,int msg,int param,void *data);
  23.     int get_custom_param_desc(int i,param_desc *pd);
  24.     bsp_object *clone();
  25. };
  26.  
  27. class dpblend_sphere_desc : public class_desc
  28. {
  29. public:
  30.     void *create() { return new dpblend_sphere; };
  31.     char *get_name() { return "dpblend_sphere"; };
  32.     int get_type() { return TYPE_DPBLEND_SPHERE; };
  33. };
  34.  
  35.